﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace HodhodNews
{
    public class Consts
    {
        static string _AggregationLogFilePath;
        public static string AggregationLogFilePath
        {
            get
            {
                if (string.IsNullOrEmpty(_AggregationLogFilePath))
                    _AggregationLogFilePath = HttpContext.Current.Server.MapPath("~/Logs/AggregationLog.txt");

                return _AggregationLogFilePath;
            }
        }

        static string _SimulationServiceLogFilePath;
        public static string SimulationServiceLogFilePath
        {
            get
            {
                if (string.IsNullOrEmpty(_SimulationServiceLogFilePath))
                    _SimulationServiceLogFilePath = HttpContext.Current.Server.MapPath("~/Logs/SimulationServiceLog.txt");

                return _SimulationServiceLogFilePath;
            }
        }

        static string _BaseUrl;
        static string BaseUrl
        {
            get
            {
                if (string.IsNullOrEmpty(_BaseUrl))
                {
                    var url = HttpContext.Current.Request.Url;
                    _BaseUrl = url.Scheme + "://" + url.Authority + "/";
                }
                return _BaseUrl;
            }
        }

        static string _DummyPageUrl;
        public static string DummyPageUrl
        {
            get
            {

                return Consts.BaseUrl + "DummyPage.aspx";
            }
        }
        public static string AggregatePageUrl
        {
            get
            {
                return Consts.BaseUrl + "Aggregate.aspx";
            }
        }

        public static string DefaultUser = "HodhodAccount";
    }
}
